package org.googlecode.viewt.core.tools.web;


public class BeanConfigGenerator extends BaseWebGenerator
{
  private boolean generated = false;

  public String getLoggerCategory()
  {
    return "BeanConfigGenerator";
  }

  public String getTemplate(String actionName)
    throws Exception
  {
    return "spc_ACTION.vm";
  }

  public String getOutputFile(String actionName)
    throws Exception
  {
    if (!(this.generated)) {
      this.generated = true;
    }
    return WebActionUtil.actionBeanConfigFile(getDestPath(), getActionsDef().getModuleName());
  }

  public boolean needGenerate(String actionName)
    throws Exception
  {
    return (!(this.generated));
  }

  public void setupContext()
    throws Exception
  {
  }

  public void setupContext(String actionName)
    throws Exception
  {
  }

  public void cleanContext(String actionName)
    throws Exception
  {
  }

  public void cleanContext()
    throws Exception
  {
  }
}